<div class="modal-header bg-black">
    <h5 class="modal-title">{{title}}</h5>
</div>
<div class="modal-body">
    <form name="form" class="form-validation padder-v">
        <div class="text-danger wrapper text-center" ng-show="authError">
            {{authError}}
        </div>
        <div class="list-group list-group-sm m-b-none">
            <div class="list-group-item">
                <input type="text" class="form-control no-border" placeholder="正则表达式" ng-model="info.rule" >
            </div>
        </div>
    </form>

    <div class="panel b-a">
        <form class="form-horizontal" method="get">
            <div class="form-group m-b-none">
                <label class="col-sm-2 control-label" for="testVal">测试值</label>
                <div class="col-sm-10">
                    <input type="text" id="testVal" class="form-control no-border" placeholder="" ng-model="testData" >
                </div>
            </div>
        </form>

    </div>

    <div class="panel b-a" ng-if="testResult.length>0">
        <div class="panel-heading b-b b-light">匹配结果
            <button class="btn btn-default btn-xs pull-right" ng-init="isCollapsed = false" ng-click="isCollapsed = !isCollapsed">Toggle</button>
        </div>
        <div collapse="isCollapsed" class="panel-body collapse in" style="height: auto;">
            <div class="list-group-item" ng-repeat="item in testResult"> {{item}} </div>
        </div>
    </div>
</div>
<div class="modal-footer bg-black">
    <button class="btn btn-default" ng-click="cancel()">取消</button>
    <button class="btn btn-primary" ng-click="ok()">{{buttonText}}</button>
</div>